<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>博客系统主页面</title>
    <link rel="stylesheet" href="/css/index.css">
</head>
<body>
<div id="app">
    <h1>欢迎来到博客系统</h1>
    <h3>今日天气：晴 &#x1F31E;</h3>
    <a href="login.html">返回登录</a>
    <ul>
        <li><a href="upload.html">上传文章</a></li>
        <li><a href="view-articles.html">文章列表</a></li>
        <li><a href="add-type.html">增加文章分类</a></li>
        <li><a href="view-profile.html">查看个人信息</a></li>
    </ul>
</div>
<script>
    document.getElementById('logout').addEventListener('click', function() {
        localStorage.removeItem('token');
        localStorage.removeItem('username');
        window.location.href = 'login.html';
    });
</script>
</body>
</html>
